package com.feign.interf;

import com.feign.compont.HiHystrix;
import com.feign.config.FeignConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/** 声明调用服务的名称， 声明调用的配置类， 调用失败 熔断的类*/
@FeignClient(value = "security",configuration = FeignConfig.class,fallback = HiHystrix.class)
public interface EurekaClientFeign {
    @GetMapping("/home")
    String sayIndexFromClientEureka(@RequestParam(value = "name") String name);
}
